That was not an easy bug to find ... turns out recent mingws need -march=i486 to produce linkable code. Who would have known!