fix a few -Wunused-parameter warnings