[backpack] Rework definite package compilation

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>