fixed compiles for linux.

Author:yangyingchao, 2013-02-28