small fixes for windows compile