added gentoo compatibility