Added platform.h that includes OSX-specific and iOS-specific #defines for properly resolving platform-dependent classes