Fix the detection of alpha-channel in textures as created by IMG_Load

This fixes the textures loading under Mac OS X
Let mouse.png's format be detected

Fixes the mouse cursor on Mac OS X