EHS builds on windows with cmake and VS 2013

Adapted the code to build on windows, with visual studio 2013.
Samples don't build yet.