Gold struggles for direction in thin year-end trading