build: linking improvement