XXX: link against -lm