Re-add Gentoo support
Merge pull request #440 from ad-notam/master

Re-add Gentoo support