Makefile.am: Fix out of tree builds

The explicit build rules for gram.y and scanner.l need to be
prefixed with $(srcdir) for out of tree builds to work properly.