fix some windows issues