Adding support for ofed compatibility in kernel applications

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