fix of gentoo bug #515118