Fixed some compile flags