Fixes dependency library building
Removes build directory