Modified Makefile to get libs propely