fixing dynamic library imports