Fix linkage type