[BZ-1052299] fix incremental compilation for project dependencies