Add Visual C++ 11.0 support to CMake build

This is required to enable DLL build for VS2012.