patch for 32 bit compilation

Change-Id: I7b5a6497dd03aef6ea41c0ebd704fd1e7a5ea7ef