fix compilation on gentoo releases