fixing build issues with dependencies