Fix build error in gentoo