fixed macosx support in PlatformConfig