Fix some unused variable warnings
Add an --enable-debug=full option

When --enable-debug=full is passed, debugging is always enabled.
This patch also moves the debug check below the option parsing
so it properly takes effect. Additionally, a couple more debug
messages have been added and some quotation marks were removed
from the configure.ac script.