build: fixing link problems