Add compile and genpkg rules