Fixed crash bug that occurs intermittently
Added XPath testcase and fixed Makefile.in bug