Fix for Gentoo Linux