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