Make triangle example compile