code optimization
emalloc() must not return NULL
better error messages in ZMM on Windows