Move system header includes above valgrind.h include

This allows rustc to be built with msys2's mingw64

Fixes #16347.