Test using direct byte buffer
Fix JNA issues
Merge pull request #394 from emmanuel-keller/master

JNA tests