oid: use unsigned int to fix warning.
memory: add prototype for realloc implementation.