Since these "API-set" DLLs are often introduced or updated through Windows patches, ensuring your OS is fully up to date can resolve the issue.
If you get this error while compiling: