creates a static lib now in lib directory