Changes to make 64bit version work: Cmake, some DWORD/DWORD_PTR issues etc.

Signed-off-by: IUnknown68 <arne@salsitasoft.com>
Changes for cmake: Define _WIN64.

Signed-off-by: IUnknown68 <arne@salsitasoft.com>