Oil up with G20's $5 trillion pledge, weak US dollar