Added terrain program (tmp shaders)
Made cleanup thread safe
Added a set camera state method
Improved error handling
More error handling
Made the marching cubes threaded system safer