fix Windows compile error