Build packages during preparation