reduce: Fix compilation problems