Add support for building shared libraries with MSVC