2011 compatibility

Hi mkvd,

this is the long awaited pull request with the least changes needed to have your app run on a 2011 Smart TV.

regards