Вам нужны файлы заголовков openmotif или lesstif, которые вы можете получить следующим образом:
# lesstif:
sudo apt-get install lesstif2-dev
# openmotif is not available in ubuntu repos
# but you can get it from it's official site:
# http://www.opengroup.org/openmotif/
# but it wants registaration before downloading.