mingw32 already defines mode_t in sys/types.h