Add cmake build system, fix examples for Windows compatibility.
Update README to mention CMake build system.