Fix make check compilation.

TestRarFile: StringUtils::EndsWith no longer takes a third parameter
TestCharsetConverter: CCharsetConverter::subtilteCharsetToW's first
parameter cannot be a std::wstring, ::stringCharsetToUtf8 renamed to
::ToUtf8
TestJobManager: CJobManager::IsPaused renamed to IsProcessing with reverse
effect, s/UnPause/UnPauseJobs. Only PRIORITY_LOW_PAUSABLE jobs can be paused.

 There is a race condition upon calling IsProcessing for the first time
 after AddJob is called - the job may not have been started yet and not
 added to the processing list. As such, the test implements a custom CJob
 that allows the calling thread to block until the job has started processing
 such that IsProcessing can be checked in a deterministic way.

 CancelJobs effectively renders CJobManager useless after it is called,
 because m_running is set to false. A new member "Restart" was added to
 set this variable back to true when appropriate.

 IsProcessing should have returned false when jobs were paused.

TestSortUtils: SortItems is now a std::vector<boost::shared_ptr<SortItem>> not
an std::vector<SortItem>
TestStreamDetails: Aspect ratio 2.39 is now within the 2.37 - 2.47 range and
as such snaps to 2.40
Merge pull request #3376 from smspillaz/fix-tests-04102013

Fix make check compilation.
[rbp/omxplayer] Add wait for buffers done calls
[rbp/omxplayer] Handle timeouts greater than a second
[rbp/omxplayer] Callback context pointer is not needed once in the class
[rbp/omxplayer] Avoid state change when already in loaded
[rbp/omxplayer] Remove warnings from event logging calls
[rbp/omxplayer] Add more event logging
[rbp/omxplayer] Signal bad state on decode error

Also abort timeouts early when in bad state
[rbp/omxplayer] We should block until all buffers are released
[rbp/omxplayer] Load OMX dll just once

On Pi xbmc isn't usable without OMX (used for video, audio, image encode and decode),
so rather than loading dll with every component, just load it once at initialisation and assume it's there
[rbp/omxplayer] Reset more state variables on Initialize

The component shouldn't remember any state from before the Initialize