fix dependency issues when building against yarn