Fix debug makefile cflags, fix infinite loop bug when using mmap, implement "silence trick", fix wrong messages in signal handlers