Ensure threadpool compiles.
Provide pre-compiled implementations of threadpool_attach.

Reduces size of generated code in users of this library.