Old drug may teach new tricks in treating infectious diseases, cancer