32bit wiadss from Win7

(cherry picked from commit faff4743a38e6f106e0da090d0c625ad8372c211)
regenerate Makefile.in
Fix d2d1.h casting in macros

Reported by morous at users d sf d net

(cherry picked from commit 3403da3708720e90ca3d165fd067b631fc0bcc1c)