Simplify detection of the msvc compiler version.

At the same time support ninja and nmake generators.
Always install the zmq library, even when building in debug.
Merge branch 'simplify_msvc_checks'
Merge branch 'always_install_zmq_libs'