To make sure it works, add support to the example while we're at it. Also fix compilation warnings.
Make sure that all code included in the player and client is pure C. This helps on portability.