triangle: Fix linking