test-cases compile and don't segfault

I had to remove some code from the sampleutil code for it to compile
that is not cool. We should include some daily testruns in jenkins with
automatic notification if any of them fail.
Merge pull request #71 from kain88-de/test_fix

test-cases compile and don't segfault
Merge remote-tracking branch 'upstream/master' into features_loop_recorder