Modified timeout in triangle examples
Some changes to accomodate running on OS X