[PATCH] kernelbase: Duplicate some path handling functions from shlwapi.