cmake: Fix build errors with XCode 6.1