Speed up the compilation process v3

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