Enable debug information for RelWithDebInfo build when ENABLE_BUILD_OPTIMIZATIONS is ON.