Fix missing windows includes for mingw