Fixed compiler warnings.
Added more asserts for #1678.
Merge branch 'master' of github.com:supertuxkart/stk-code