Matlab compiling and vectoriced matlab function

Here is some modifications to make Matlab compiling go smoother.
(the original did not compile due to -ansi which was default on my installation.)
In addition there is new function which take vector input and output.
The aim was to be able to use your excellent work as an add on to open source Matlab Reservoir ToolBox
www.sintef.no/Projectweb/MRST/ 

Your work was very useful to be able to test realistic fluids for simulation of reservoir with temperature.
I have seen that you had started on  an interface for mixtures. I would be very intrested to test that for our code also.