Add compiler flags and treat warnings as errors.