add missing header files to avoid warnings.
to avoid warnings.
print more debug message of mem-share module.
small fix.