common/mlx5: fix build without dlopen option