Add -DDEBUG when debug is enabled so we can #ifdef it
Re-enable Python threads in build