fixed cygwin build, added texture class, got rid of texture rectangles