Fix for gentoo compilation