Add new dmemmgr.h header for Video-memory memory-API.
Modify dmksctrl.h so that missing defines are present, and the interface
works well in C++-mode, too.