Fixed the compiling errors under Linux.