windows fix compiler errors