Fix pedantic compiler flag check