Fix build error for hazy dependencies