Allow using device numbers on Windows.

@jonnyjd: Made a new PR against master. A wrong drive number will now lead to an error instead of falling back to `MB_DEFAULT_DEVICE`.