fixed win compile errors