PUI doesn't share syntax with UIU/AI (Which is the only reason I can support those two, since optional code doesn't exist in vJass yet). Furthermore, PUI is slow compared to both UIU and AI because its GetUnitIndex function doesn't inline down to GetUnitUserData. The red flavor of UIU functions in a very similar manner to PUI, it just doesn't support the textmacro hacks it has. (Rightly so, personally)
I'm sorry that your map uses PUI, if you want to use it with this system, do a search and replace on "GetUnitId" to make it "GetUnitIndex". Then fix the library requirement and that should fix it right up.