Fix compilation on GCC 4.3.
Fix warnings about -Qunused-arguments.