Move to external iterators for filter_map.

Also gitignored generated Makefile.