fixed a number of errors in Texture2D
added -lSDL to LFLAGS in the makefile