Fixed simple typo in comedi_device.cpp preventing compilation.
Added check for -ldl in configure.