Add memory subsystem related defines to the compile-time options list.
Fix harmless compiler warnings.
Make use of the CC nmake macro even when cross-compiling (with MSVC).
Fix two potential (and apparently harmless) shift overflows discovered by
the -fcatch-undefined-behavior option of clang.
Fix harmless compiler warnings and improve the MSVC makefile.