[DROOLS-535] Fix platform dependencies
(cherry picked from commit 634260ab7834f9a3a629cff5540ba91f681dd342)