Fix compilation and event handling (except keys) on OSX.
Fix compilation and event handling (except keys) on OSX.

drobilla/pugl,OpenMusicKontrollers/midi_matrix.lv2,OpenMusicKontrollers/midi_matrix.lv2,OpenMusicKontrollers/sherlock.lv2,OpenMusicKontrollers/synthpod,OpenMusicKontrollers/midi_matrix.lv2,harryhaaren/pugl,OpenMusicKontrollers/moony.lv2,OpenMusicKontrollers/patchmatrix,drobilla/pugl,OpenMusicKontrollers/sherlock.lv2,OpenMusicKontrollers/synthpod,OpenMusicKontrollers/sherlock.lv2,OpenMusicKontrollers/moony.lv2,OpenMusicKontrollers/synthpod,harryhaaren/pugl,OpenMusicKontrollers/moony.lv2,OpenMusicKontrollers/moony.lv2,OpenMusicKontrollers/moony.lv2,harryhaaren/pugl,OpenMusicKontrollers/synthpod,OpenMusicKontrollers/patchmatrix,OpenMusicKontrollers/moony.lv2,OpenMusicKontrollers/sherlock.lv2,OpenMusicKontrollers/synthpod,OpenMusicKontrollers/patchmatrix,drobilla/pugl,OpenMusicKontrollers/patchmatrix,OpenMusicKontrollers/midi_matrix.lv2