Variable assignments should be to the right of the configure command:
```
./configure CFLAGS='-O2 -msse2 -IC:/MinGW/include/ddk' PKG_CONFIG_PATH='C:/MinGW/msys/1.0/local/lib/pkgconfig'
```

Also, I think CFLAGS does not need to be overridden/specified?