Fixed Matrix compilation in XCode.