update compiler flag check