Added two missing texture functions and cleaned up some includes.