Fix references to global functions of compiled module