ObjLoader, fix deprecated methods