A little silicone works just like glue and you don't have worry about it running all over the place. Just make sure you get the one that doesn't release acid when it cures. Think it might be called Silicone II.
I have used caulking for a "glue" as well.
Fred