Check bundled FreeTDS library with distutils.ccompiler.has_function before using it.

Hopefully this will skip linking with the library when it's the wrong
architecture (e.g.: on OS X for example) or otherwise unusable.