fix building for release