Fix linking issue with release build