meson: Add a meson build system
This does everything the autotools based system does, including building
both a static and shared version by default, though this can be
controlled with meson's builtin default_library
option.
This also fixes the pkgconfig files generated by autotools. I can split that out if that would be preferred.