cmake fixes for Xcode 6
Merge pull request #120 from stopiccot/cmake_xcode_fixes

cmake fixes for Xcode 6