Fix #624 - remove xdg-basedir dependency, simplify build.

@garyb @joneshf review/discussion?