Improved CMake compiling.
Updated README.md with new compiling steps.