Adding more robust matToEuler code in OrientationMath. Fixing other compile errors.