Compile mysql functions only if mysql-client is installed.

Some fixes.