More Windows fixes:
- major() and minor() undefined
- statbuf.st_dev holds the drive number on Windows