Free context when draw target is freed.
Don't create extra reference to GL context on new.
Merge pull request #27 from metajack/mem-leak

Fix GL context leak.
Fix debug and release compiles.
Merge pull request #28 from metajack/debug-fixes

Fix debug and release compiles.
Merge remote-tracking branch 'upstream/master'
gradient pattern, surface pattern added