[Build] Fixed compilation from Visual Studio.
[Direct3D10] Fixed Query.IsDataAvailable to correctly process the result returned from native function (#476).