io.inc for Linux and bug fixes for Windows