libtool: merge some patches from yocto for cross builds.