Add "hidapi" to names attempted to be dlopened

This change makes the library work on Mac OS X.
Fix type of default argument value in the write method

The original value caused a TypeError: must assign a bytes of length 1, not int
Merge pull request #1 from niligulmohar/master

Minor fixes