Fix return value of processEvents
Add OS X build script and binary