add incrementalBuild function

Needed by https://github.com/CyberShadow/Digger/pull/9