Fix the const parameters to the builtins.
Replace capabilities.h with memcap.h, better exposing implementation-agnostic capabilities.