Cmake win

This makes it possible to use cmake on windows, too.

No more quarrels about VC2008 vs VS2013.