build: Include <sys/loadavg.h> if it exists.

As getloadavg() doesn't live in <stdlib.h> on Solaris, we include this
to get a proper declaration.