add load average function and link math in Makefile