fixed reading raw devices on Windows