Revert previous configure script change; it broke the build for shared modules.
Need to reexamine why that feedback was given on GitHub.
Also fix a typo causing a compiler warning.