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
Merge pull request #243 from OdyX/dev-fix-textures-loading

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