Add support for gentoo platform.