lib/realtime: add a compatibility layer for OSX