update vs2012 build
fix test compile warning

@olafmandel, do you agree that the warning about the implicit conversion
is nonessential to the test?