Added missing include to os.h for osx

pthread.h is needed
Merge pull request #13 from aberghage/master

Added missing include to os.h for osx