Glocks are readily convertible if you have the part. You just replace the back plate.
AR15's are similar as well, if you have a lighting link or similar device.
That is why these particular parts are classified as MGs, not the firearm itself.
Declaring all Glocks MGs doesn't make a lot sense. Of course, the switch by itself isn't one either, rationally speaking.