Fix warnings

add /EHsc flah to compiler