S_IROTH is undefined on windows, include our platform.h.
Merge pull request #1810 from jimis/cfupgrade

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