Ancient mechanisms for the evolution of the bicoid homeodomain's function in fly development