support MySQL 5.7.5 and later

Patch for #12