Changes in order to avoid the use of usb compat.

These changes come mainly from the openphd guiding project. They still should be adapted a little more.

Please review these changes. I do not have the necessary hardware to test it. Any comment or feedback very welcome.

Thanks,
Raffi