Changed the build method of dependency libraries.