Compiling with threads.

Solves #88 but it may not be the last word on that. Also includes two commits about `linkall`.