Update smarty lib to 3.1.6