Fix MSVC 2012

Catchup the fixes done on MSVC 2010 projects for DLL compiles