fabs(3) needs -lm on HP-UX, too
disable threading by default on DragonflyBSD, because of strange looking malloc behavior