Fix project build order in VS and MD.

See #226.