update makefile
correctly cast pointer to tex data
fix include location for some rwx classes