Duplicate texture stealing code from mac for unix.
Merge pull request #20 from jdm/unix

Duplicate texture stealing code from mac for unix.
Merge remote-tracking branch 'upstream/master'
Merge branch 'master' into seanwork