Added a bunch of third party libs and helper functions

Texture memory is just not happening at the moment
3D textures are slightly better, still not working but I think I sort of know what Im doing now