Moving declaration outside of the #if so that it can be set on OSX builds also