Immunomodulation by small molecules for prevention or treatment of cancer