Do not build apple objective-c codes if using gcc
Merge pull request #2390 from nicolasmartin3d:master_bug3546