I find O rings usually acceptable. But if not, there are a lot of 3D printable mounts on Thingiverse. I've gone to those for some of my Chinese lights. They generally are more permanent though (IE takes a couple of minutes to get them off).
__________________
Work: the 8 hours that separates bike rides.