Update triangle example to latest rust

size_of was moved to std::mem from std::sys