msvc: Only update generated headers when there are changes

This fixes generating the headers casuing complete rebuilds,
even when the headere's content didn't really change.
Merge pull request #633 from stinos/msvc-fix-genhdr-dep

msvc: Only update generated headers when there are changes