add 'make lib' to make file to build as lib