Add core dump ability. Closes #153.
Fix release build.