Build only lib from package

Fixes #724