Add configure patch from gentoo