These changes allows testing on Windows with clang.exe. There are two main changes:
- only include -lm when it actually exists on the system
- create basic versions of pthread_create() and pthread_join() for windows. They are not POSIX compliant by any stretch but will allow any existing (and future) tests to use pthread_create() and pthread_join() for testing interactions of libomp with os threads.