Makefile: improved libraries copy