Minor build system improvements.

- Always explicitly link against libm and libtiff in LDFLAGS.
- Check for tiffio.h (the libtiff header) in configure.
- Add a bunch of checks suggested by autoscan.
Bump version to 1.0.1.