Skips compilation if nocompile is true.

@basarat

This also notifies caller if the reference file was updated.