jam: add internal dependencies for multi-file generating actions

* Based on https://svn.boost.org/trac/boost/changeset/39341