Fixes compatibility with Xcode 4