Fixing declarations of DWORD & friends

A 'long' is not 32 bits on most 64 bit platforms.