CP-6958 - Fix 64 bit build

Make project compile on both 32 and 64 bit environment.