Fixed compilation errors under VS 2010 and Win 7
Merge pull request #3240 from a-wi:MSMF_compilation_errors