Allow make to build on FreeBSD natively
Summary:
mysql-config allow to easily get compiler options to find MySQL or MariaDB
include files, or libraries and options to link with the client library.
Paths for TCL includes and library are for Solaris and FreeBSD.
As far as we know, we're the only users from that library copy of the code.
If there is a need to use it from Linux, we'll need to adapt TCL directories too.
Finally, we also need to include /usr/lib for libz, as it's part of the base OS.
-G is replaced by -shared to target FreeBSD as default OS instead of Solaris.
Changes are compatible with both BSD and GNU Make.
Test Plan:
- make
- gmake
Differential Revision: https://devcentral.nasqueron.org/D3911