Merged batch_interface into work_queue.

Linking is now done:
-lwork_queue -ldttools
Fix the random worker selection algorithm to work correctly with WQ4.0.

(adding missing brace)