Split shared and static builds