Fixed issue with rendering on Linux
Cross platform solution to flickering problem
Merge pull request #28 from seken/master

Fixed issue with rendering flickering on Linux