Fixed gcc compiler errors; particularly centroid calculation in mesh.cpp
and initialition of variables (to =0) in bvh.cpp