Fix gentoo support

I had some trouble when using both client and host with gentoo. This should solve the problems...