fixed linking issues with makefile