fix --enable-debug=no and --disable-debug to actually disable debug