fix compilation errors

Change-Id: I4c7426b28043f7efa6f693368eaa184aaeaa1169
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>