tweak samples to use targetPlatform.operatingSystem.isMacOsX()