Update makefile

Added link to threaded library