add patch for M4 to fix building on systems with recent glibc (>=2.16)

This fixes the problem reported in #390.