Fix shared build on Visual Studio.