Windows: Fix compile issues after build system changed to cmake.

Authored by ralavizadeh on Oct 3 2017, 7:33 AM.