Makefile modified, lib target added