implement comparison using deb-version(5) semantics. use it wherever we compare versions. fixes bug 699