Fixed the XaviFunctionOpen function so that it reports failure and cleans up when malloc fails.
Fixed the haching function used to lookup function names.