Linux compatibility fix

* fixed letter case of included file names
* C language definition is needed for CheckForPthreads.c

Hi,
I am working with your cmake-migration build and found a problem today.
I fixed it real quick and tested it on Ubuntu but it should also work on any other system.
Best regards
Andreas