Fix gentoo build