Rebase from 'upstream'
Add install rule for package.xml, build as shared lib, disable testing
Set CMAKE_INSTALL_LIBDIR=lib to come over multi-arch issues on indigo Trusty