Fix unexported function errors, thanks Buildbot