Fix pthread issue. Per target include directories.
Merge pull request #1 from jpilet/jp-fix-pthread

Fix pthread issue. Per target include directories.

Jonas: I have checked that it compiles and the tests run for me.