[build] Use the serial-tests option if automake >= 1.13

It resolves the "make check" issue of #13 in most cases.