Rebase from 'upstream'
Add install rule for package.xml, build as shared lib, disable testing
Force CMAKE_INSTALL_LIBDIR=lib