The CMake implementation seems to be very in flux, and the latest
release broke cross-compilation for us. Autotools seems to be
upstream's recommended build system -- it's the one mentioned in the
README.
They are exported under the dev_private output so
that they aren't available automatically to dependening libraries.
This also switches to cmake to simplify the patch.