patch for 32 bit compilation

Change-Id: I8d8dde383b924a5034e07bcda0f9fbcbf410a871