Add events for GPU context loss & restore.
For Travis CI - switch CI build to use OS X build environment.