resolves #179.  mex rigid body constraints now use the updated drake mex...

... pointer logic, which locks the mex file until all objects are deleted.