fix compiling error in linux