libftd2xx should be linked in shared library not in programs using library.