Fix build with XCode 6.0