S_IROTH is undefined on windows, include our platform.h.