fix linking of sources