[BZ-1096128] fix incremental compilation of KieModules having external dependencies