Oil prices stable, heading for weekly gain