libwine: Add a helper function to read a symlink.