Hopefully fix random test failures on OS X.

https://gist.github.com/cxxr/9295595