added EHsc flag to compiler for exceptions