Add switch to build perl with threads