Add pthread.h to mididriver.h