Fixed bugs when reaching the end of the file

* Fixed crash when Elapsed > Duration
* Fixed improper PlaybackManager behaviour in the Next and Previous
functions
* Send TimerTickEvent when reaching end of file
* Fixed PlaybackStopped not being sent with WaveChannel32
* Set build dependencies