move foreign into the Makefile.am