posix_openpt return type fix