Fixed heading covariance calculation and build errors.