Fixed build by adding librt to build system.