Visual Studio 2012: Fixed performance warnings and a test compilation error.

Warnings were due to conversion of floats to bools.