Mounting or fastening of components in housings