This fixes Gentoo bug #507712 (https://bugs.gentoo.org/507712)

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>