fix build issue for dependencies