fixed some of the compiler errors
Fixed bad render call in web and x11