Fixed lots of warnings and made som changes to TextureUtil and Pool class.