Changed compile flags order