fix os x build flags