Fixed compile under Gentoo Linux.

Author:yangyingchao, 2013-02-07