Fixed compilation, now compiles against latest library API.
Fix assertion in test case.
Merge pull request #1 from vtnerd/CompileFix

Fixed compilation, now compiles against latest library API.