Add missing core API classes.

Adds some missing core API classes which caused segfaults and other
nasty stuff.