Switch build system to CMake.

I couldn't figure out how to get the autotools system to properly
cross compile to Windows, and CMake should allow us to eventually
support MSVC as well as many other environments much more easily.

Signed-off-by: Evan Nemerson <evan@coeus-group.com>