Add flags for optimization, compiler warnings.