fixed some compile flags