I think your compile error can be solved by modifying desktop.mk. Make sure it contains the following lines:
Code:
CFLAGS = -pipe -fno-exceptions -Wall -Wno-ctor-dtor-privacy -W -DLIBICONV_PLUG $(shell pkg-config --cflags gtk+-2.0)
LDFLAGS = $(shell pkg-config --libs gthread-2.0 x11 gtk+-2.0) -leripc -lerdm