updated xgmath and makefile