Add -lm to the default linker libs and update libSDL_gfx and libSDL_image