Makefile update for libraries right compilation