fixed Makefile error and compiler warning for module.c