Tried @rougier's suggestion to fix the bug.
Fixed fix.
Got rid of ctypes in the fix.
Merge pull request #254 from vispy/bug-multiple-programs

Tried @rougier's suggestion to fix the bug.