Add configure debug switch to compile with debug symbols enabled