fix compiling fail on Linux.