build: do not export compat functions from lib