Gold up on softer dollar but oil weakness caps gains