Updated teapotclient to support Solaris/x86