Updated makefile to link properly