Golfers take to library links for charity