build fix for MinGW

The S_IRGRP, S_IWGRP, S_IROTH, and S_IWOTH macros are not defined on MinGW