compile to pir AFTER installation

Hi,

currently panda compiles .pm to .pir inside .work directory which is only a staging directory. This may cause issues if some logic in a module is done during compile time, data found during compile time is embedded into .pir.

This change set moves .pir generation to the install step.