makePDF fix for OSX Yosemite