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

Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Merge pull request #844 from Jojo-Schmitz/gentoo-bug-507712

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