Fix for MSVC linking and release-build OpenMM plugin dir.