patch for 32 bit compilation

Change-Id: I34274f3dcf8a8929bce215bd5ba84c8597544470