Added a bunch of patches to fix some perlbrew problems