perl Enable Perl threads, has some compatibility problems