Add install target and build as shared object