Implement getpwnam

Add getpwnam to avoid having to dynamically load glibc's NSS libraries.
When this happens when wshd runs inside a container, the version of
glibc there might not match the version of glibc it was compiled for.
Implement openpty