fix architecture dependend library paths