It would be great to support _popen/_plose for use in VC++. Looks like someone else did a pull request on this already.
I made a similar edit for use in VC++, but did not need to use windows.h. Also, since this is for C++, you might include rather than <stdio.h>.