cmake fixes for Xcode 6