Separate library install into static and shared installation.