build: don't look for .la files twice