Adding dependency to librt on Linux.
Making sure the callback is set before calling it.