Fix language bindings and portfolio builds.