fix compiling error in Linux