Only link librt on non-Darwin (Mac) machines.

This should do it. As far as I know, all Macs (at least) since 2004 should identify themselves as 'Darwin', so we're safe.