Mackenzie, William Forbes, active 1830-1878, Secretary to the Treasury