Memory and logging fixes from AXIS2C-1669

Applied patches-
    xpath_internals_engine.c.patch
    xpath_internals_parser.c.patch
    xpath_streaming.c.patch

with some adjustments to compensate for previous changes.
3 files changed