/MD should be passed as compile flags, not link flags.