btl/openib: fix warnings