Compile fixes.
Fix lambda use.
Fix typo.
Remove warning about undefined use of offsetof.
Implement counterpart for operator==.
Many compile fixes.
Make threadpool_intf lambdas all compile cleanly.