Fix bug that prevented XCode to switch between Release and Debug build type.