Fix errors in src/ that cppcheck yielded with the default configuration

This fixes a number of cppcheck errors that were found in the /src subfolder of supertuxkart.
I admit I don't care about this one :)   (float)2.0f look ugly, and imho does not make the result less implementation dependent.