Only do the alpha swizzle on alpha textures

Avoids problems if swizzles are used elsewhere (like in the newer X11
plugins)
Add glad opengl loader
Move from glLoadGen to GLAD