Since PuTTY is open-source, it might be easiest to just integrate it with your program into a single project on the source level.