Revert "Fix remaining bionic warnings"

This reverts commit 1071f3eba24b629a3ddee740d39344f8cd1aec19.
Revert "android: backport pty implementation from aosp/master"

This reverts commit 477b2eba8cf27cb73073a3100830164e3912d130.