Some gentoo patches to make distribution lives a bit easier.