added missing includes and distribution target

cargo-culted from TiddlySpace

NB: `remotes` has to come after `test` for the `dist` target as
otherwise remotes are removed again