Link against librt.
Merge pull request #792 from eightyeight/ubuntu-cmake

Link against librt