fix matlab ld issue