native/_pystream: cross-platform fix using _WIN32. needs checking, though
native/pybind: cross-platform fix using _WIN32. needs checking, though