Functions to compile dependencies