Fix warnings, error in SDL_gfxPrimitives.c

Tested on OS X using clang to build.