Texture class: naming collision, fixes to make it compile.