Change to correct throw statement to preserve stack trace.
Merge pull request #145 from Frassle/throw

Preserve stack trace in OutOfMemory exception
[Rewrite] Refactored string prologue/epilogues

We currently have three categories of string parameters: `string`,
`string[]` and `StringBuilder`. (OpenTK 1.2 adds one more: `ref
string`.) Each category needs to be marshaled separately into a native
character array.

This commit implements the following changes:
- string[] epilogues are now correctly emitted, instead of being
ignored.
- string[] prologues and epilogues now use the same local variable name.
- all epilogues are now generated with a single pass over the function
parameters, instead of requiring a separate pass for each category.
- string prologues and epilogues now allocate local variables based on
the relevant parameter *name* rather than the parameter *type*.

Fixes issue #144.
Merge pull request #147 from thefiddler/arrayfix

[Rewrite] Refactored string prologue/epilogues
[Mac] Improved stability for NSOpenGLPixelFormat

Non-accelerated contexts are now considered iff no accelerated contexts
are available. Additionally, a GraphicsException will be thrown if
context construction fails for any reason, instead of causing a runtime
crash.
Merge pull request #149 from thefiddler/mac_stability

[Mac] Improved stability for NSOpenGLPixelFormat
[KMS] Initial implementation
[KMS] Added new Linux KMS driver
[KMS] Create window surface
[KMS] Improved GBM surface format selection
[EGL] Egl.GetError() now returns ErrorCode
[EGL] Added support for desktop GL rendering

On Linux, EGL can be used to initialize a desktop GL context.
This is especially true on KMS, Wayland and Mir.
[ES][GL] Print name when loading bindings (debug only)
[KMS] Added DRM/GBM framebuffer implementation
[KMS] Fixed NRE in Toolkit.Init(); improved resource cleanup
[KMS] Fixed Gbm.DestroyDevice entry point
[KMS] Query GPUs lazily
[Linux] Added stub TTY and  libinput IKeyboardDriver2
[Linux] Implemented TTY and libinput keyboard drivers
[Linux] Improve checks for TTY