Compilation fixes to vector3d.d