journal-remote: fix double typedef and add missing header
journal-remote: remove obsolete variable