cmake: fix & clean up xcode project

fixes #1224