Moved template compilation to postinstall step.