fix to compile under gentoo