Update to export vars for MatLAB compiler.