CMake: Change MODULE to SHARED in iOS build.
For some reason, specifying a library as SHARED causes Xcode to refuse to build, even on the most basic of projects. There's no practical side-effect for this change besides on Windows, which is why it's restricted to the iOS build.