Sweeping set of changes and bugfixes to start using ZPC again...stdio has output buffer issues.