Fixed proper library building.