I think separating static and shared libraries installation would also be beneficial here.