Add support for config flags supported by automake to cmake.
Support installation of headers and libraries using cmake.
Add warning flags for non Visual Studio targets.