Makes ThreadPoool handle fewer fewer than nThreads jobs nicely
Fixes buffer overrun in structures.cpp