openpty: fix bug where HAVE_OPENPTY is mistakenly 1