Fix git checkouts for windows building