Fixes for SINQ code compilation on MSVC.

Refs #7505