Fix compilation of mythplugins

Using inline code was a bad idea to start with…
Fix unit test compllation
fix compilation due to missing header
Merge branch 'master' of https://github.com/MythTV/mythtv into devel/webfrontend