Fixed some issues preventing compilation on linux, for example non-const lvalues being returned / used in some of the bounding box methods were causing problems apparently covered up by MSVC