cmake: Remove -pthread flag

causes 'unused flag' warning on OSX