fix up the compile flags