EHS builds on windows with cmake and VS 2013

- adapted the code to build on windows
- added cmake build system