Fix 64-bit compiling issue because of Matlab