Move MinGW LDFLAGS setting to configure.