hal/utils: reorder libs for linking halcmd

makes the Ubuntu linker more comfortable - as reported by Sam on the list