fixed a compile error under windows