Remove PDT enum problem hack

Improve SourceModule dependency detection