Fix MySQL version check (from master)