move all mex-contaminated poop into matlab.hpp
build libgame.a first
move mex stuff into mex/