Rpi fixes

this code changes are fixing all reported issues related to RPI (generally known from issue reports directly on PE:libCEC or related sites). 

It may / may not solve individual LG TV issues (one is known to be fixed - auto reconnect after RPI reboot and XBMC reporting AS) - SLImplementation is not changed by those commits.