Host-acquired virus genes support an ancient antiviral role of the piRNA pathway in dipterans