Fix QScintilla2 build on Windows
[799] Fix serial port freezes on Windows