Update compiler flags for GCC.
Fix issues preventing compilation on GCC.