Fix build in release mode