fix compilation when used as a dependency