faster linking (>30min to <1min)

* performance of code does not seem to decrease
* have not checked the file size ...
* have not checked if it still works on linux (well it should)