net/mlx5: fix build with gcc 7.1