Remove dependency on select and poll and switch to non-blocking I/O

For better compatibility with MinGW
Fix possible cross-confusion between serial / usb modes
Merge pull request #1 from dmaxl/zeus_mingw

Zeus mingw