Fix linux build, set proper runpaths and link directories.