correctly compile and include dependencies