fixed win compilation error