fixed building with NO_DLO

NOTE: you still need to edit Makefile (remove -ldlo). I'm working on that.