Fix Makefile to reference correct libraries