Add API for incremental compilation