support libraries defined in a function passed as an argument to IIFE

possible solution for #39