Fix for Ubuntu 14.04.
Wrap this in a test for PE.
Merge pull request #411 from apenney/fix-1404

[WIP] (don't merge) Fix for Ubuntu 14.04.