Apply the fix mentioned in this rt ticket: https://rt.cpan.org/Public/Bug/Display.html?id=17326 to at least make the tests pass on FreeBSD