small fixes for win compilation and delete op