small fixes for windows compilation