Log Message: Fix build on Solaris by linking against librt on that platform only. From Joern Clausen in PR 40973.