win32 serial port handling bugfix (IR startup)