Yes, invoking theide with those params will compile without bringing up a GUI.
However if I remember well, the original problem was outdated libraries on target system (maybe that changed thing and I am wrong). And theide still requires GUI libraries to compile & run.
As to other question - umk IS theide. See umk.exe sources - it is just simple wrapper to get GUI theide.exe running in console mode. Known Win32 trouble..