Only link against librt if on Linux, not on Apple or Windows.