issue #2430: Fixing compilation errors for Mac and JSB projects.