More Gentoo support, some hackish stuff