small cleanups to module.h and loader.c to start playing with