Only apply objective-c compilation hack patch on Mac OS X

Otherwise gtk+3 compilation fails on Linux if objective-c
compiler is not available.