wim2d mex with in-out compiles

- TODO test things are being passed in/out correctly
  (set up test case by reading in wim_init.[ab] files)