minor link/script fixes