build: Replace -lLIB with LIB.a for locally built libraries

LIBPATH in the generated Makefile may contain -L$(archlibdir) before
the ports' lib directories.  Disable path searching by resolving absolute
paths of locally built libraries.

Fixes issue #50.