Fix matlab protability issue on linux