Fixed plugin builds under 10.8/XCode 4.6