Add --enable-debug-build flag to configure
Disable optimization when debugging

Note that the default CXXFLAGS is "-g -O2" when not debugging.
Add -Werror option when debugging
Use --enable-debug-build option for Jenkins build
Merge pull request #64 from magicant/chore/debugging

Add --enable-debug-build option to configure