Fix issue with release build on Mac.