semantic issues in vec.h and mat.h in xcode project