fix OS X build using Xcode 6