types: fixup missing includes and forward decls.

Signed-off-by: Peter Soetens <peter@thesourceworks.com>