Fix linker error when linking spanningtree caused by 56cae0f3a484cbcb20569b68917f1810a0c2f4a4