fixed compiler warning for platform check
consistent build settings to reduce warnings