cmake: fix & clean up xcode project

fixes #1224
Merge pull request #1225 from timblechmann/topic/cmake_xcode_fix

cmake: fix & clean up xcode project