Fixed Makefile to get rid of the dependencies on some unused libraries