openpty: fix bug where HAVE_OPENPTY wasn't defined