move compatibility hooks for S_ISREG et al to conf.h