core: Allow kinds derivings

This patch allows for using derivings for `kinds` in libcore