Fix compilation with SDL2.

Commit cec386ad35a1d5ddb9b721d3c66abc091e8ca68f broke compilation due to
removing an required include.
Fix Clang documentation warnings.

The string //<< is seen as documentation comment instead of normal
comment.
Mark some functions static.