Compiling openmotif demos, xmkmf -a: missing separator

Hi all.
I'm trying to compile the OpenMotif samples in the "demos" directory.
I moved to openMotif-2.2.3/demos/programs/periodic and run:
% xmkmf
mv -f Makefile Makefile.bak
imake -DUseInstalled -I/usr/lib/X11/config

It created a Makefile. Running make...
% make
Makefile:1095: *** missing separator. Stop.

Can you help me?

EDIT: I already seen this http://www.motifzone.org/forum/developers/compiling-demos post. I installed openmotif by Ubuntu repository, and I have a bunch of .cf files in /usr/lib/X11/config

Thanks for any reply :)

----EDIT----
Compiled motif from sources and installed. Now, the "periodic" demo crashes with


*** buffer overflow detected ***: lt-periodic terminated
======= Backtrace: =========
. . . a bunch of code .. . .
======= Memory map: ========
. . . a lot of code .. .