Support thread enabled perl