[JSB] Fixing compilation errors for iOS and Mac projects.