fix release build linking