Speed up the compilation process v4

Sames as #113 except:

* trivial fixes and updates
* build info data refactoring
* using term_to_binary compression
* not writing build info file if the graph is unmodified
* default enabling keep_build_info
* unconditionally keeping build info