64-bit and Tizen build fixes