Small Windows fixes
No unportable unsigned long, etc.