Fix linker error on Windows when building without Cg.