Avoid target-specific compiler flags in tests/Makefile.am.

Some versions of GNU Automake seem to require an extra autoconf check
when some Makefiles contain target-specific compilation flags (in this
case, -I flag for the tests).  To avoid this extra check, we can just
set the include path flag globally in AM_CPPFLAGS.