Add debug boost libraries
Fix error handling and add mini dumper.