[eglfs] Set swapInterval at the right time

The swapInterval applies to the current context and cannot be set
before.
Merge pull request #19 from sletta/master

[eglfs] Set swapInterval at the right time