Fixes CMake static support on Windows
BUILD_SHARED_LIBS was added but was not tested on Windows which is known to be more complex due dll export/import.
BUILD_SHARED_LIBS was added but was not tested on Windows which is known to be more complex due dll export/import.