Patched for libcommuni v3.x

I've patched the source to build against libcommuni v3.x