Lots of cmake changes to get generation of vs2010 project files to work.
more changes to cmake to better support unix/win