Merge pull request #284 from rillian/warning

Enabled warnings on the autoconf build.
Remove unused variables.

Fixes -Wunused-variable and -Wunused-but-set-variable on gcc 4.7.2.