Compile library dependencies