GCC release build fixes.