generate .o files from compiler instead of .obj files

Can you try passing --trace-expand to the initial configure (and put stderr into a file for analysis) to see if the variable is set anywhere else?