Add mac implementation of wakeup_event_loop.