Fixes to the building system.

The compilation now works also on systems that don't have
Comedi or a realtime kernel.