Added /EHsc compile option and also .gitignore file. 

- defined /EHsc compile option in CMakeLists.txt
- added .gitignore file with the necessary definitions