Fix build error when MySQL is not installed.