Fixed compilation errors in Release and Optimized modes.