portability changes for ddespy project