How to use lua library in pre-function

i have a pre-function that uses a lua script with the following line:

local xml2lua = require(“xml2lua”)

this does not work due to the sandbox in version 2. How do i solve this so i can use xml2lua and/or other libraries that not are included in kong.* and/or ngx.*.

Thanks!