Add API to request pty size, use it
libgssh: Use better linker flags

These are all best practice.