Eliminating dependency on comlib library

Signed-off-by: Ilya Nelkenbaum <ilyan@mellanox.com>