changed #if HAVE_SYSINFO to #if defined(HAVE_SYSINFO)