cleanup of compile flags