add --enable-debug for configure

Rebased-From: f5f157b