fix Makefile linking error