check for function sqrt in -lm