Add generic debug flags for --with-debug