Fix some unused parameter warnings.

The other warnings of this type cannot
be fixed as the headers are generated by javap