Fix compilation on VS2010.

This fixes the "cannot bind lvalue to rvalue" error.