Move build-related stuff into a separate library
Fix build
New build system API
Fix python live build