LNK1189 error despite running in release and using shared libraries in CMake

Thanks @MaxLoep @bmorgan downgrading the CMake version solved it for me!