dmake: fixed compilation of reduce