LibShadowdive v2 API compatibility

This enables libshadowdive v2 API on omf2097-tools project.
- All tools converted to use the new API
- Some cleanups here and there
- A couple of memory leaks patched.