Mackay, James, 1761-1822