add -lm to avoid build error