Merge pull request #82 from sunyc/master

Switch to c++ compile mode, fixed build. Also include "try/catch" patch by wodan.
DEBUG without DEBUGMALLOC_EXTENSIONS now works.
Reorg options.h

Also seperate local_options.test for dev and release version.
Update travis config to test both dev and release config.
Fix PACKAGE_DWLIB build with ADD_ACTION.