Fix Libbsc and dynamic lib builds.