Allow xcode to automatically select debug or release build

thanks Jeremy Noring for the addition!