The patch below allows a complete MinGW build of branch_release-1-8; I haven't tried actually running the built .exe and .dlls yet. Comments appreciated as usual! Neil