Set IOControl on Windows only, it fails on Mac OS X (with mono)