Made linking actually work properly