add -lm
sqrt to sqrtf
sqrt to sqrtf