Sheffield Wednesday have snapped up free agent Stephen McPhail on a contract that will initially run until January.