Added lib and plugin target to makefiles