snogmath.h: Include <cstdlib>
configure.ac: Link against -lm if necessary

Explicitly linking with -lm isn't necessary when using libstdc++ (the
default for gcc), as it pulls in -lm itself, but this isn't true of
libc++.