Sync toolkit.
Implement emalloc/efree/ecalloc/erealloc.
Implement estrdup/estrndup.