Add -lhwloc and -lrt if needed.