Fix build break when COM is disabled

This removes a typo that was introduced which caused COM dependencies to be referenced.
Merge pull request #747 from spicypixel/hotfix/object-disable-com

Fix build break when COM is disabled