patches to get mathic, mathicgb to compile under clang.