Registering C classes is ugly...