Speed up the compilation process v4

Sames as #113 except:

* trivial fixes and updates
* build data refactoring
* storing the data zlib compressed
* default enabling keep_build_info
* unconditionally keeping build info