finish linking correct libraries