add workaround for gentoo bug 461744