Add smarty2 polyfill