Some bug fixes which should prevent can_device_open() in CAN-USB library from segfaulting