Removed old linking to -lrt, added -lm back in Makefile