Cleanup input handling

Cleanup handling of input. Remove caching of input and specialize for
memory buffer inputs. This should speed things up.
Add a new build macro: UD_DEBUG

Add a build time macro UD_DEBUG which enables assertions and decode
error logging.
Update windows build files for removals