to compile eigenmat in linux and mac