Fix some compile warnings regarding unused variables.