Add configure flag to enable debug build.