fix compile flags