CMake: Support building shared libraries with MSVC.