Changes for cmake: Define _WIN64.
Changed one handle ptr for 64bit.

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