Build only lib from package

Fixes #724 

Ok, isn't it enough just to test if lib file exists?