Fixes issue with latest Xcode and compiling for release mode