fixed building and linking dependencies from externals folder]