Fix release build (unused parameters).

Some unused parameters in release mode trigger compilation errors.