Added missing include to os.h for osx

pthread.h is needed