delete commented out codes in process.c
fini shared library before closing
delete debug code in process.c
conform to c99, reduce compilation differences between gcc and clang
fix mistake in format string when logging