Remove eio dependance, add control thread for ncurses engine, compatible c++