fixed compilation for 64 bit matlab