Fix autoconf check for sparsehash

This fixes issue #423
6 jobs for master in 202 minutes and 15 seconds (queued for 2 seconds)