Use some 2 part epoxy to stick the part onto your hero 5 case or plastic weld it on. Slather the part in epoxy and let it cure. Its not perfect but is good enough.
-Matt3D