Reduce the added flags even more to build even on 5.7 mysql.