Run the 2d demos on the main thread too.

This is needed for them to work on OSX.