avutil: Use a configure check to enable windows console functions