Initialize module instance ASAP

It is needed to allow include files get/set global variables or call
global methods.