only "fastest" mode was working, others would SEGV.
WIN32 - close file mapping handle in env_close cursor_unref - ignore cursor with empty stack