Add -eventlog option only when necessary.
Workaround for ioManagerWakeup error on OSX.
More relevant ghc ticket in comment.