Add cross-platform string-comparison function.