Companion compilation error on VC++