Fix build break when COM is disabled

This removes a typo that was introduced which caused COM dependencies to be referenced.