Makefile: checks for libs