Hopefully fix the build for mingw-w64

Compile-tested only.

Should support the new device "DK1".