adds min_vXX macros and caches the version lookups.

 - Since Contexts and CmdQueues are created en masse we need to cleanup after them.