Fix the libusb test.
Add the ability to set the scheduling parameters of the main thread.
Fix the build.
Add the SIGXCPU watchdog.
Fix the mac build.
Address Peter's comments.
Merge pull request #551 from nomis52/master

Add the ability to control scheduling parameters, closes #399