Prevent shared library build on Windows.

Does not create a *.lib file if the CMake BUILD_SHARED_LIBS
variable is ON, and linking fails.  Acconding to the doxygen
documentation, this is a known issue.