Edited CMakeLists.txt to support C++ 11 in XCode

Set some CMake flags to allow simbody to compile w/c++11 using Xcode. Works using OSX10.8
It looks like there are just three cases here, maybe if (XCODE) elseif (APPLE) else () ? Can this pair of ifs be simplified?