Correcting Windows compiler errors