[DROOLS-523] make incremental compilation to also update globals
(cherry picked from commit 184765346e998430064a4935fbb358930946d82c)