Fastening of component parts of lighting devices