Fix build on Mac OS

librt doesn't exist on Mac OS, nor is it needed.