added real curses implementation; split 3rdparty build scripts into config and build part