lib: fix missing includes in exported headers