add support for vs2012
fix for c++