Fix Linux makefiles to resolve symlinks