Add some debug outputs, fix devIL.

TODO: WTF FLICKERING WHITE