Rearrange compile flags