very unfinished port of torchat
use patches instead of forcing CFLAGS, from zhuk@