You can copy the necessary terminfo descriptions to remote hosts.
-
On the local system, dump the description to text format:
infocmp xterm-256color > xterm-256color.ti
infocmp screen-256color > screen-256color.ti
-
Copy to the remote host and compile: