workaround for OpenBSD 'stdin' implementation