Another attempt to fix build with both newer and older autotools.
Valgrind-friendly memory fetch.
Tests for valgrind-friendly memory fetch.
Compatibility with bison-3.0.