include: add various missing extern C decls.