fixed compile flags