Update makefile

Fix issue where librt wasn't linked in, which is sometimes required on certain systems.