[DROOLS-61] generate a proper compilation failure when trying to use non-public classes in drl
(cherry picked from commit ca31c2fb77762170f154642aefdd13d239d31b52)