Added early interface to the module manager, moved pid definition to arch-agnostic code