compile_mesa: preserve current compiler flags and fix typo