Fix some compilation error under Linux.