PROBLEM 2 is really just a simple interface change. Any mex file that uses the library...
ATLAS to Octave build/Matlab mex interface