CAROLINE-28: Multithreading.

CAROLINE-28: Add pthread multithreading implementation.

CAROLINE-28: Fix build.
Merge pull request #107 from it-workshop/wp/CAROLINE-28/1

CAROLINE-28: Multithreading.