mingw-w64 doesn't have definitions like S_IRGRP, S_IROTH.