Fix for Problem with XCode Generator

This pull request solves the problem that the XCode generator ignores the `CMAKE_BUILD_TYPE` value.