Fixed compilation errors

Signed-off-by: Orit Moskovich <oritm@mellanox.com>
(cherry picked from commit 3fb8f348ed70ae2de0eba8da3ff71fc1c0c89129)

except without changes to: sys/ofed/drivers/infiniband/core/cma.c