KARAF-3014. Fix for using multicast in tests and other build fixes.

See https://issues.apache.org/jira/browse/KARAF-3014