[MP] Some 64 bit fixes for module API