Fixed a compile-time error when platform is set to Mac OS.