Remove dependence on the unix package completely

This simplifies code and makes it "windows" friendly.
Minor distance example tweak