Support static cross-compiling with MXE for Win32.