avutil: Include io.h with a separate condition from windows console functions