Small changes to build textures code regarding gamma correction,
possibly other things.