Introduce workaround for a problem with the CMake XCode generator that seems to ignore the CMAKE_BUILD_TYPE value.
Merge pull request #5 from hpicgs/iss#4

Fix for Problem with XCode Generator