I have built from master and tested the current 5.1.0-SNAPSHOT with my examples on karaf 4.0.4. It works fine now.