First install xgrafix library (cd xgrafix && make install) and then compile xpdp program.