Better error handling for PPG.

Set PPG's output in skel build script properly.

Fixed some type translation problems.