Fix compiler warning and DTrace on Illumos.