some fixes

collection of local patches
Hmm I could modify the variables to be `%%ldcbinarypath%%/../...` but then install doesn't work anymore. Maybe a separate conf file and a cmake switch for portable installation would be the cleanest solution.