Fixed problem with matlab libraries.

We can't just add the matlab library path to the search path for the linker, since it contains strange not-working dupliactes of other already existing libraries.
So we are linking directly now, this requires matlab to be installed in ~/matlab