Modify Makefile to have the library in lib directory and delete unused targets
Suppress compilation warning