Update CMakeLists.txt

Newest Ubuntu requires pthread to link (bug in cmake I think), updating it here.
Merge pull request #106 from sintefmath/kjetilly_ubuntu_1404_fix

Update CMakeLists.txt