Fixes release-mode compilation errors