Fixed dependency issues when building a specific module.