Fix linkage error with --disable-cwc