Looks like we need to investigate in depth what the deps for d3d9 and make sure we have them all covered.
Fixed in 73cde983fbb055e7d5dfebb61cc0fc14a7c8c7e4