Fixed linkage errors under vc