Fixed some C++ problems and changed OBJ loader to put data right into buffers