should resolve mex exe/lib linking for on all platforms.  resolves #4
merge