Fix makefile issue

The following commit fixes an issue which is present on certain systems when compiling, where librt isn't automatically linked in. If it is automatically linked, this doesn't do anything.