configure: Use the -Wshift-overflow=2 compiler option if available.