Adjust timing of macro definition and including sys/stat.h.