Add --enable-debug configure flag

This adds "-O0 -g -Wall -Wextra" to compiler flags