Mac compilation fixes.
Move render outside event poll loop.
Snapshot working triangle rendering.
Apply matrices.