Infection with the herpes simplex virus , being older and using the medication mycophenolate to suppress the immune system were associated with an increased risk of basal cell carcinoma , the study said .