Set parent definitions for imported ones.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>