Added external dependencies, made the lib compile