Improved CMake file and fixed a case-sensitive error in osinclude
Added phtreads to the link libraries
Fixed typo in Cmake
Added pthreads to project executable
Removed uneccessary compiler flag