updating class dependencies in a centralized way at the end of every compilation round