Updated mingw build script for autotoolized liblightgrep.

This batch of commits updates CONFIGURE_F18.sh for building liblightgrep with its new build system, plus some cleanup to make the script run faster and exit on failure.