Windows fix for md380_gfx from Wolfgang. Close #710.