Fix calls of global functions of compiled module