fix compiling problem under unix