fix configure script so check-configure test succeeds
improve .gitignore files