Make lib into a package

As a package its modules can be properly installed.