Cleanups for win32 support
Minor refinements
Add some documentation for cmake options