Added output debugging for windows. Update for latest version of pegasus