added lib target to compile code to a static lib