Import old changes.
Extract flag logic (will be useful later).
Update build-deps.
Build all components.