fixed pathname related compiling error on linux