ATF fixes

These changes allow ATF to be dynamic recognized and creates the right agal code for it.
Support for ATF Cube textures was added.

Note: The dynamic texture format recognition works just for desktop formats so far (dxt1 and dxt5). Please Let's figure out a way to make it smart regarding platform as well.