Fix issue #2 from nyholku/purejavahidapi