configure.ac: add an --enable-buffer-checks option