The only function we actually check for in the code is memmem

That may be wrong, but we can revisit this later
Use autoconf to check whether we need to link against libm